package com.bangdream.michelia.view.activity.my;

import android.annotation.SuppressLint;
import android.view.View;
import android.webkit.WebView;

import com.bangdream.michelia.R;
import com.bangdream.michelia.contract.CoursesContract;
import com.bangdream.michelia.presenter.CoursesPresenter;
import com.bangdream.michelia.tool.retrofithttp.ApiService;
import com.bangdream.michelia.view.activity.base.SwipeBackActivity;

public class MyAboutUs extends SwipeBackActivity {
    WebView webView;


    @Override
    public int getLayout() {
        return R.layout.activity_aboutus;
    }

    @SuppressLint("JavascriptInterface")
    @Override
    public void findId() {
        webView = findViewById(R.id.webview);
        webView.loadUrl("http://122.144.211.63/about.html");//加载url
        webView.addJavascriptInterface(MyAboutUs.this,"android");//添加js监听 这样html就能调用客户端


    }


    @Override
    public void setListener() {

    }

    @Override
    public void logic() {
        initTitleBar(" ", "关于我们", "", this);
    }

    @Override
    public CoursesPresenter<CoursesContract.IMyCertList> createPresenter() {
        return new CoursesPresenter<>();
    }


    @Override
    public void onClick(View view) {
        super.onClick(view);

    }




}